home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Calendar
- AutoRedraw = -1 'True
- BackColor = &H00C0C0C0&
- BorderStyle = 0 'None
- Caption = "Calendar"
- ClientHeight = 3795
- ClientLeft = 1320
- ClientTop = 1425
- ClientWidth = 3255
- ClipControls = 0 'False
- ControlBox = 0 'False
- Height = 4230
- HelpContextID = 40002
- Icon = CAL.FRX:0000
- Left = 1245
- LinkMode = 1 'Source
- LinkTopic = "Form2"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 253
- ScaleMode = 3 'Pixel
- ScaleWidth = 217
- Top = 1065
- Width = 3405
- Begin VScrollBar YearScroll
- Height = 1740
- LargeChange = 10
- Left = 2775
- Max = 2078
- Min = 1753
- TabIndex = 24
- Top = 570
- Value = 1753
- Width = 240
- End
- Begin HScrollBar MonthScroll
- Height = 240
- Left = 225
- Max = 13
- TabIndex = 25
- Top = 2280
- Width = 2565
- End
- Begin PictureBox Picture1
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 135
- Left = 3015
- Picture = CAL.FRX:0302
- ScaleHeight = 135
- ScaleWidth = 165
- TabIndex = 1
- TabStop = 0 'False
- Tag = "Stuck"
- Top = 90
- Width = 165
- End
- Begin CommandButton Command2
- Caption = "OK"
- Default = -1 'True
- Height = 345
- Index = 0
- Left = 735
- TabIndex = 0
- Top = 3300
- Width = 855
- End
- Begin CommandButton Command1
- Caption = "Today"
- Height = 345
- Left = 1620
- TabIndex = 16
- Top = 3300
- Width = 840
- End
- Begin SSCommand Command3
- BevelWidth = 1
- Caption = "Dec"
- Font3D = 0 'None
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 270
- Index = 11
- Left = 2550
- RoundedCorners = 0 'False
- TabIndex = 15
- Top = 2895
- Width = 480
- End
- Begin SSCommand Command3
- BevelWidth = 1
- Caption = "Nov"
- Font3D = 0 'None
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 270
- Index = 10
- Left = 2085
- RoundedCorners = 0 'False
- TabIndex = 14
- Top = 2895
- Width = 480
- End
- Begin SSCommand Command3
- BevelWidth = 1
- Caption = "Oct"
- Font3D = 0 'None
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 270
- Index = 9
- Left = 1620
- RoundedCorners = 0 'False
- TabIndex = 13
- Top = 2895
- Width = 480
- End
- Begin SSCommand Command3
- BevelWidth = 1
- Caption = "Sep"
- Font3D = 0 'None
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 270
- Index = 8
- Left = 1155
- RoundedCorners = 0 'False
- TabIndex = 12
- Top = 2895
- Width = 480
- End
- Begin SSCommand Command3
- BevelWidth = 1
- Caption = "Aug"
- Font3D = 0 'None
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 270
- Index = 7
- Left = 690
- RoundedCorners = 0 'False
- TabIndex = 11
- Top = 2895
- Width = 480
- End
- Begin SSCommand Command3
- BevelWidth = 1
- Caption = "Jul"
- Font3D = 0 'None
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 270
- Index = 6
- Left = 225
- RoundedCorners = 0 'False
- TabIndex = 10
- Top = 2895
- Width = 480
- End
- Begin SSCommand Command3
- BevelWidth = 1
- Caption = "Jun"
- Font3D = 0 'None
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 270
- Index = 5
- Left = 2550
- RoundedCorners = 0 'False
- TabIndex = 9
- Top = 2640
- Width = 480
- End
- Begin SSCommand Command3
- BevelWidth = 1
- Caption = "May"
- Font3D = 0 'None
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 270
- Index = 4
- Left = 2085
- RoundedCorners = 0 'False
- TabIndex = 8
- Top = 2640
- Width = 480
- End
- Begin SSCommand Command3
- BevelWidth = 1
- Caption = "Apr"
- Font3D = 0 'None
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 270
- Index = 3
- Left = 1620
- RoundedCorners = 0 'False
- TabIndex = 7
- Top = 2640
- Width = 480
- End
- Begin SSCommand Command3
- BevelWidth = 1
- Caption = "Mar"
- Font3D = 0 'None
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 270
- Index = 2
- Left = 1155
- RoundedCorners = 0 'False
- TabIndex = 6
- Top = 2640
- Width = 480
- End
- Begin SSCommand Command3
- BevelWidth = 1
- Caption = "Feb"
- Font3D = 0 'None
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 270
- Index = 1
- Left = 690
- RoundedCorners = 0 'False
- TabIndex = 5
- Top = 2640
- Width = 480
- End
- Begin SSCommand Command3
- BevelWidth = 1
- Caption = "Jan"
- Font3D = 0 'None
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 270
- Index = 0
- Left = 225
- RoundedCorners = 0 'False
- TabIndex = 4
- Top = 2640
- Width = 480
- End
- Begin TextBox MonthValue
- Height = 330
- Left = 3880
- TabIndex = 33
- Top = 105
- Visible = 0 'False
- Width = 390
- End
- Begin Label Label2
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BackStyle = 0 'Transparent
- Caption = "S"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H000000FF&
- Height = 255
- Index = 8
- Left = 240
- TabIndex = 26
- Top = 600
- Width = 375
- End
- Begin Label Label2
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BackStyle = 0 'Transparent
- Caption = "M"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 255
- Index = 7
- Left = 600
- TabIndex = 27
- Top = 600
- Width = 375
- End
- Begin Label Label2
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BackStyle = 0 'Transparent
- Caption = "T"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 255
- Index = 9
- Left = 960
- TabIndex = 28
- Top = 600
- Width = 375
- End
- Begin Label Label2
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BackStyle = 0 'Transparent
- Caption = "W"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 255
- Index = 10
- Left = 1320
- TabIndex = 29
- Top = 600
- Width = 375
- End
- Begin Label Label2
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BackStyle = 0 'Transparent
- Caption = "T"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 255
- Index = 11
- Left = 1680
- TabIndex = 30
- Top = 600
- Width = 375
- End
- Begin Label Label2
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BackStyle = 0 'Transparent
- Caption = "F"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 255
- Index = 12
- Left = 2040
- TabIndex = 35
- Top = 600
- Width = 375
- End
- Begin Label Label2
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BackStyle = 0 'Transparent
- Caption = "S"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00FF0000&
- Height = 255
- Index = 13
- Left = 2400
- TabIndex = 36
- Top = 600
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 0
- Left = 240
- TabIndex = 37
- Top = 855
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "1"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 1
- Left = 600
- TabIndex = 38
- Top = 855
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "2"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 2
- Left = 960
- TabIndex = 39
- Top = 855
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "3"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 3
- Left = 1320
- TabIndex = 40
- Top = 855
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "4"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 4
- Left = 1680
- TabIndex = 41
- Top = 855
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "5"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 5
- Left = 2040
- TabIndex = 42
- Top = 855
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "6"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 6
- Left = 2400
- TabIndex = 43
- Top = 855
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "7"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 7
- Left = 240
- TabIndex = 44
- Top = 1080
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "8"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 8
- Left = 600
- TabIndex = 45
- Top = 1080
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "9"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 9
- Left = 960
- TabIndex = 46
- Top = 1080
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "10"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 10
- Left = 1320
- TabIndex = 47
- Top = 1080
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "11"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 11
- Left = 1680
- TabIndex = 48
- Top = 1080
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "12"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 12
- Left = 2040
- TabIndex = 49
- Top = 1080
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "13"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 13
- Left = 2400
- TabIndex = 50
- Top = 1080
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "14"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 14
- Left = 240
- TabIndex = 51
- Top = 1320
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "15"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 15
- Left = 600
- TabIndex = 52
- Top = 1320
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "16"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 16
- Left = 960
- TabIndex = 53
- Top = 1320
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "17"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 17
- Left = 1320
- TabIndex = 54
- Top = 1320
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "18"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 18
- Left = 1680
- TabIndex = 55
- Top = 1320
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "19"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 19
- Left = 2040
- TabIndex = 56
- Top = 1320
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "20"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 20
- Left = 2400
- TabIndex = 57
- Top = 1320
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "21"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 21
- Left = 240
- TabIndex = 58
- Top = 1560
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "22"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 22
- Left = 600
- TabIndex = 59
- Top = 1560
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "23"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 23
- Left = 960
- TabIndex = 60
- Top = 1560
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "24"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 24
- Left = 1320
- TabIndex = 61
- Top = 1560
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "25"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 25
- Left = 1680
- TabIndex = 62
- Top = 1560
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "26"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 26
- Left = 2040
- TabIndex = 63
- Top = 1560
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "27"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 27
- Left = 2400
- TabIndex = 64
- Top = 1560
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "28"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 28
- Left = 240
- TabIndex = 65
- Top = 1815
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "29"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 29
- Left = 600
- TabIndex = 66
- Top = 1815
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "30"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 30
- Left = 960
- TabIndex = 67
- Top = 1815
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "31"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 31
- Left = 1320
- TabIndex = 68
- Top = 1815
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "32"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 32
- Left = 1680
- TabIndex = 69
- Top = 1815
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "33"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 33
- Left = 2040
- TabIndex = 17
- Top = 1815
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "34"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 34
- Left = 2400
- TabIndex = 18
- Top = 1815
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "35"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 35
- Left = 240
- TabIndex = 19
- Top = 2055
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = "36"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 36
- Left = 600
- TabIndex = 20
- Top = 2055
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = " "
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 37
- Left = 960
- TabIndex = 21
- Top = 2055
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = " "
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 38
- Left = 1320
- TabIndex = 22
- Top = 2055
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = " "
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 39
- Left = 1680
- TabIndex = 23
- Top = 2055
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = " "
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 40
- Left = 2040
- TabIndex = 31
- Top = 2055
- Width = 375
- End
- Begin Label Mh3d1
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- Caption = " "
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 225
- Index = 41
- Left = 2400
- TabIndex = 32
- Top = 2055
- Width = 375
- End
- Begin Label Yr
- Alignment = 2 'Center
- AutoSize = -1 'True
- BackColor = &H00C0C0C0&
- BackStyle = 0 'Transparent
- Caption = "1991"
- ForeColor = &H00000000&
- Height = 195
- Left = 1425
- TabIndex = 3
- Tag = "Stuck"
- Top = 300
- Width = 450
- End
- Begin Label Mnth
- Caption = "Mnth"
- Height = 435
- Left = 3630
- TabIndex = 34
- Top = 720
- Width = 1815
- End
- Begin Label TextMonth
- Alignment = 2 'Center
- AutoSize = -1 'True
- BackColor = &H00C0C0C0&
- BackStyle = 0 'Transparent
- Caption = "September"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 240
- Left = 1065
- TabIndex = 2
- Tag = "Stuck"
- Top = 75
- Width = 1170
- End
- Option Explicit
- Dim DaysInMonth(13) As Integer
- Dim TempfColor As Long
- Dim TempbColor As Long
- Dim SavedCallerDateField As Long
- Dim gNocalc As Integer
- Dim DayToSelect As Integer
- Dim Todayed As Integer
- Dim tcLoaded As Integer
- Dim MouseIsDown As Integer
- Dim SavedScaleMode As Integer
- Dim MStartX As Integer
- Dim MStartY As Integer
- Dim LastClick As Integer
- Dim LastClickDate As Integer
- Sub Command1_Click ()
- ToToday
- ConvertDates
- End Sub
- Sub Command2_Click (Index As Integer)
- If Index = 0 Then
- CallerDateField = DateSerial(ValTrim((Yr.Caption)), ValTrim((Calendar.MonthValue.Text)), ValTrim((Mh3d1(LastClick%).Caption)))
- 'Else
- ' CallerDateField = SavedCallerDateField
- End If
- LastDateField = CallerDateField
- tcLoaded = False
- Unload Calendar
- 'Calendar.Hide
- End Sub
- Sub Command3_Click (Index As Integer)
- Todayed = True
- Calendar.MonthScroll.Value = Index + 1
- Calendar.Mnth.Caption = Str$(MonthScroll.Value)
- 'ConvertDates
- End Sub
- Sub ConvertDates ()
- Dim YearC%, MonthC%
- Dim DateToCalc#
- Dim I%, J%, K%, DayNum%, M%
- Screen.MousePointer = 11
- DaysInMonth(0) = 0
- DaysInMonth(1) = 31 'JAN
- DaysInMonth(2) = 28 'FEB
- DaysInMonth(3) = 31 'MAR
- DaysInMonth(4) = 30 'APR
- DaysInMonth(5) = 31 'MAY
- DaysInMonth(6) = 30 'JUN
- DaysInMonth(7) = 31 'JUL
- DaysInMonth(8) = 31 'AUG
- DaysInMonth(9) = 30 'SEP
- DaysInMonth(10) = 31 'OCT
- DaysInMonth(11) = 30 'NOV
- DaysInMonth(12) = 31 'DEC
- YearC% = ValTrim((Calendar.Yr.Caption))
- MonthC% = ValTrim((Calendar.Mnth.Caption))
- Calendar.MonthValue.Text = Str$(MonthC%)
- If YearC% Mod 400 = 0 Then
- DaysInMonth(2) = 29
- ElseIf YearC% Mod 100 = 0 Then
- DaysInMonth(2) = 28
- ElseIf YearC% Mod 4 = 0 Then
- DaysInMonth(2) = 29
- Else
- DaysInMonth(2) = 28
- End If
- DateToCalc# = DateSerial(ValTrim((Calendar.Yr.Caption)), ValTrim((Calendar.Mnth.Caption)), 1)
- TextMonth.Caption = TransMonth2$(ValTrim((Calendar.Mnth.Caption)))
- For I% = 0 To 41
- Mh3d1(I%).Caption = ""
- Mh3d1(I%).Enabled = False
- Next I%
- DayNum% = Weekday(DateToCalc#)
- J% = 1
- I% = 0
- K% = DayNum% - 1
- M% = 0
- For I% = 1 To DaysInMonth(MonthC%)
- If DayToSelect = J% And Todayed Then
- Mh3d1(LastClick).BackColor = TempbColor
- Mh3d1(LastClick).ForeColor = TempfColor
- LastClick% = K%
- Mh3d1(K%).BackColor = TempfColor
- Mh3d1(K%).ForeColor = TempbColor
- Mh3d1_Click (K%)
- LastClickDate = J%
- 'Exit For
- ElseIf LastClickDate = J% Then
- Mh3d1(LastClick).BackColor = TempbColor
- Mh3d1(LastClick).ForeColor = TempfColor
- LastClick% = K%
- Mh3d1(K%).BackColor = TempfColor
- Mh3d1(K%).ForeColor = TempbColor
- End If
-
- If LastClickDate > DaysInMonth(MonthC%) Or DayToSelect > DaysInMonth(MonthC%) Then
- Mh3d1(LastClick).BackColor = TempbColor
- Mh3d1(LastClick).ForeColor = TempfColor
- LastClick% = K%
- Mh3d1(K%).BackColor = TempfColor
- Mh3d1(K%).ForeColor = TempbColor
- End If
-
- Mh3d1(K%).Caption = Trim$(Str$(J%))
- Mh3d1(K%).Enabled = True
- J% = J% + 1
- K% = K% + 1
- Next I%
- Screen.MousePointer = 0
-
- End Sub
- Sub Form_Load ()
- Dim bLeft%, bTop%, bright%, bbottom%, Addl%
- Dim SavedScaleMode%
- Dim I%
- Dim OldBottom%, NewBottom%, ChangedTop%
- OldBottom% = Yr.Top + Yr.Height
- TextMonth.FontName = AllTheTime.FontName
- TextMonth.ForeColor = AllTheTime.ForeColor
- TextMonth.FontBold = AllTheTime.FontBold
- TextMonth.FontSize = AllTheTime.FontSize
- Yr.FontName = AllTheTime.FontName
- Yr.ForeColor = AllTheTime.ForeColor
- Yr.FontBold = AllTheTime.FontBold
- Yr.FontSize = AllTheTime.FontSize
- Yr.Top = TextMonth.Top + TextMonth.Height '- 2
- NewBottom% = Yr.Top + Yr.Height
- ChangedTop% = NewBottom% - OldBottom%
- For I% = 0 To Controls.Count - 1
- If Controls(I%).Tag <> "Stuck" Then
- Controls(I%).Top = Controls(I%).Top + ChangedTop%
- End If
- Next I%
- Me.Height = Me.Height + ChangedTop% * GTwpsPerPxly
- For I% = 7 To 13
- Label2(I%).FontName = AllTheTime.FontName
- 'Yr.ForeColor = AllTheTime.ForeColor
- 'Yr.FontBold = AllTheTime.FontBold
- 'Yr.FontSize = AllTheTime.FontSize
- 'Label2(I%).Top = Yr.Top + Yr.Height + 3
- Label2(I%).Top = YearScroll.Top + 2
- Next I%
- Left = (Screen.Width - Width) / 2
- Top = (Screen.Height - Height) / 2
- AutoRedraw = True
- picture = LoadPicture("")
- bLeft = MonthScroll.Left + 1
- bright = YearScroll.Left + YearScroll.Width - 1
- bbottom = MonthScroll.Top + MonthScroll.Height - 1
- bTop = YearScroll.Top + 1
- 'top
- Line (bLeft - 1 - Addl%, bTop - 1 - Addl%)-(bright + 1 + Addl%, bTop - 1 - Addl%), 0
- Line (bLeft - 2 - Addl%, bTop - 2 - Addl%)-(bright + 2 + Addl%, bTop - 2 - Addl%), &H808080
- 'left
- Line (bLeft - 1 - Addl%, bTop - 1 - Addl%)-(bLeft - 1 - Addl%, bbottom + 1 + Addl%), 0
- Line (bLeft - 2 - Addl%, bTop - 2 - Addl%)-(bLeft - 2 - Addl%, bbottom + 2 + Addl%), &H808080
- 'bottom
- Line (bLeft - 1 - Addl%, bbottom + 0 + Addl%)-(bright + 1 + Addl%, bbottom + 0 + Addl%), 0
- Line (bLeft - 2 - Addl%, bbottom + 1 + Addl%)-(bright + 2 + Addl%, bbottom + 1 + Addl%), &HFFFFFF
- 'right
- Line (bright + 0 + Addl%, bTop - 1 - Addl%)-(bright + 0 + Addl%, bbottom + 1 + Addl%), 0'&HC0C0C0
- Line (bright + 1 + Addl%, bTop - 2 - Addl%)-(bright + 1 + Addl%, bbottom + 2 + Addl%), &HFFFFFF
- TempbColor = Mh3d1(0).BackColor
- TempfColor = Mh3d1(0).ForeColor
- SavedScaleMode = ScaleMode
- ScaleMode = 1
- DrawShadow Me
- ScaleMode = SavedScaleMode
- AutoRedraw = False
- Screen.MousePointer = 0
- ScaleMode = 1
- End Sub
- Sub Form_MouseDown (Button As Integer, Shift As Integer, x As Single, Y As Single)
- SavedScaleMode = ScaleMode
- ScaleMode = 1
- MStartX = x
- MStartY = Y
- MouseIsDown = True
- End Sub
- Sub Form_MouseMove (Button As Integer, Shift As Integer, x As Single, Y As Single)
- If MouseIsDown Then
- Calendar.Top = Calendar.Top + (Y - MStartY)
- Calendar.Left = Calendar.Left + (x - MStartX)
- End If
- End Sub
- Sub Form_MouseUp (Button As Integer, Shift As Integer, x As Single, Y As Single)
- MouseIsDown = False
- ScaleMode = SavedScaleMode
- End Sub
- Sub Form_Paint ()
- Dim I%
- If tcLoaded Then Exit Sub
- SavedCallerDateField = CallerDateField
- Command2(0).SetFocus
- For I% = 0 To 41
- Mh3d1(I%).ForeColor = 0
- Mh3d1(I%).BackColor = &HC0C0C0
- Next I%
- 'Beep
- Screen.MousePointer = 11
- LastClick = 1
- LastClickDate = 1
- 'Refresh
- tcLoaded = True
- ToADay (CallerDateField)
- ConvertDates
- 'Calendar.Hide
- Screen.MousePointer = 0
- End Sub
- Sub Mh3d1_Click (Index As Integer)
- End Sub
- Sub Mh3d1_DblClick (Index As Integer)
- 'Call Mh3d1_Click(Index)
- ' tcLoaded = False
- 'Unload Me
- End Sub
- Sub Mh3d1_MouseDown (Index As Integer, Button As Integer, Shift As Integer, x As Single, Y As Single)
- Mh3d1(LastClick).BackColor = TempbColor
- Mh3d1(LastClick).ForeColor = TempfColor
-
- Mh3d1(Index).BackColor = TempfColor
- Mh3d1(Index).ForeColor = TempbColor
- Todayed = False
- LastClick% = Index
- LastClickDate = ValTrim((Mh3d1(Index).Caption))
- CallerDateField = DateSerial(ValTrim((Yr.Caption)), ValTrim((Calendar.MonthValue.Text)), ValTrim((Mh3d1(Index).Caption)))
- End Sub
- Sub MonthScroll_Change ()
- On Local Error Resume Next
- If MonthScroll.Value = 13 Then
- gNocalc = True
- MonthScroll.Value = 1
- YearScroll.Value = YearScroll.Value + 1
- gNocalc = False
- End If
- If MonthScroll.Value = 0 Then
- gNocalc = True
- MonthScroll.Value = 12
- YearScroll.Value = YearScroll.Value - 1
- gNocalc = False
- End If
- On Local Error GoTo 0
- Calendar.Mnth.Caption = Str$(MonthScroll.Value)
- Calendar.Yr.Caption = Trim$(Str$(YearScroll.Value))
- If Not gNocalc Then ConvertDates
- End Sub
- Sub MonthScroll_Change1 (PartBar As Integer)
- MsgBox "Monthscroll Fired"
- If PartBar = 5 Or PartBar = 7 Then GoTo bypass2
- If MonthScroll.Value = 13 Then
- MonthScroll.Value = 1
- YearScroll.Value = YearScroll.Value + 1
- End If
- If MonthScroll.Value = 0 Then
- MonthScroll.Value = 12
- YearScroll.Value = YearScroll.Value - 1
- End If
- Calendar.Mnth.Caption = Str$(MonthScroll.Value)
- Calendar.Yr.Caption = Trim$(Str$(YearScroll.Value))
- ConvertDates
- bypass2:
- End Sub
- Sub MonthScroll_Scroll ()
- TextMonth.Caption = TransMonth2$((MonthScroll.Value))
- End Sub
- Sub Picture1_Click ()
- Screen.MousePointer = 11
- Calabout.Show Modal
- Screen.MousePointer = 0
- End Sub
- Sub TextMonth_MouseDown (Button As Integer, Shift As Integer, x As Single, Y As Single)
- Call Form_MouseDown(Button, Shift, x, Y)
- End Sub
- Sub TextMonth_MouseMove (Button As Integer, Shift As Integer, x As Single, Y As Single)
- Call Form_MouseMove(Button, Shift, x, Y)
- End Sub
- Sub TextMonth_MouseUp (Button As Integer, Shift As Integer, x As Single, Y As Single)
- Call Form_MouseUp(Button, Shift, x, Y)
- End Sub
- Sub ToADay (D As Double)
- Dim CurrentMonth%, CurrentYear%
- CurrentMonth = Month(D)
- CurrentYear = Year(D)
- Calendar.Yr.Caption = Trim$(Str$(CurrentYear))
- Calendar.Mnth.Caption = Str$(CurrentMonth)
- TextMonth.Caption = TransMonth2$(CurrentMonth)
- gNocalc = True
- Calendar.YearScroll.Value = Year(D)
- gNocalc = False
- Calendar.MonthScroll.Value = Month(D)
- DayToSelect = Day(D)
- Todayed = True
- End Sub
- Sub ToToday ()
- ToADay (Now)
- Todayed = True
- End Sub
- Function TransMonth$ (M As Integer)
- TransMonth$ = RTrim$(Mid$("JanFebMarAprMayJunJulAugSepOctNovDec", (M - 1) * 3 + 1, 3))
- End Function
- Function TransMonth2$ (M As Integer)
- If (M < 1) Then
- M = 1
- If (M > 12) Then
- M = 12
- End If
- End If
- TransMonth2$ = RTrim$(Mid$("January February March April May June July August SeptemberOctober November December ", (M - 1) * 9 + 1, 9))
- End Function
- Function ValTrim (x$) As Integer
- Dim S$
- S$ = Trim$(x$)
- ValTrim = Val(S$)
- End Function
- Sub YearScroll_Change ()
- Calendar.Yr.Caption = Trim$(Str$(YearScroll.Value))
- If Not gNocalc Then ConvertDates
- End Sub
- Sub YearScroll_Scroll ()
- Calendar.Yr.Caption = Trim(Str$(YearScroll.Value))
- End Sub
- Sub Yr_MouseDown (Button As Integer, Shift As Integer, x As Single, Y As Single)
- Call Form_MouseDown(Button, Shift, x, Y)
- End Sub
- Sub Yr_MouseMove (Button As Integer, Shift As Integer, x As Single, Y As Single)
- Call Form_MouseMove(Button, Shift, x, Y)
- End Sub
- Sub Yr_MouseUp (Button As Integer, Shift As Integer, x As Single, Y As Single)
- Call Form_MouseUp(Button, Shift, x, Y)
- End Sub
-